#!/bin/sh
#---------------------------------------------------------
#
# description: Starts and stops additional services
#
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

mos=/usr/local/etc/mos/scripts

execKey() {
	for i in $mos/* ;do
	  [ -x $i ] && $i $1&
	done
}

execKeyWait() {
	for i in $mos/* ;do
	  [ -x $i ] && $i $1
	done
}

case "$1" in
  start )
	execKey $1
	;;
  stop)
	execKeyWait $1
	;;
  enable | disable)
	execKeyWait $1
	;;
  *)
	echo $"Usage: $0 {start|stop|enable|disable}"
esac

exit $?
